import { createApp } from 'vue'
import router from './router'

import App from './App.vue'

import {
  debounce,
  throttle,
  input,
  drag,
  tooltip,
  outside
} from '@zhizu/directive-vue3'

const app = createApp(App)

app.directive('debounce', debounce)
app.directive('throttle', throttle)
app.directive('input', input)
app.directive('drag', drag)
app.directive('tooltip', tooltip)
app.directive('outside', outside)

app.use(router)
app.mount('#app')
